package com.googlecode.yoohoo.xmppcore.protocol.parsing;

public class XmppParserContribution {
	private IXmppParserFactory<?> parserFactory;
	private ProtocolRelations relations;
	
	public XmppParserContribution(IXmppParserFactory<?> parserFactory,
			ProtocolRelation relation) {		
		this.parserFactory = parserFactory;
		ProtocolRelations relations = new ProtocolRelations();
		relations.addProtocolRelation(relation);
	}
	
	public XmppParserContribution(IXmppParserFactory<?> parserFactory,
			ProtocolRelations relations) {
		this.parserFactory = parserFactory;
		this.relations = relations;
	}

	public IXmppParserFactory<?> getParserFactory() {
		return parserFactory;
	}

	public ProtocolRelations getRelations() {
		return relations;
	}

	public void setParserFactory(IXmppParserFactory<?> parserFactory) {
		this.parserFactory = parserFactory;
	}

	public void setRelations(ProtocolRelations relations) {
		this.relations = relations;
	}
	
}
